import { headers } from 'next/headers';

// get current page url
export function getLocationUrl() {
  const headersObj = headers();
  return headersObj.get('referer') || headersObj.get('x-original-uri') || '';
}

export function getHeader(name: string) {
  const headersObj = headers();
  return headersObj.get(name) || '';
}
